package com.wtwd.campus.model.dto;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author mjy
 * @date 2023/02/01
 * @description
 */
@ApiModel(value = "批量锁设备")
public class BathLockDeviceDto {


    @ApiModelProperty(value = "锁住对象的设备")
    private String lockDto;

    private List<BathLockDevice> lockDtos;

    public List<BathLockDevice> getLockDtos() {
      return JSONArray.parseArray(lockDto,BathLockDevice.class);
    }

    public void setLockDtos(List<BathLockDevice> lockDtos) {
        this.lockDtos = lockDtos;
    }

    public String getLockDto() {
        return lockDto;
    }

    public void setLockDto(String lockDto) {
        this.lockDto = lockDto;
    }

    @Override
    public String toString() {
        return "BathLockDeviceDto{" +
                "lockDto='" + lockDto + '\'' +
                ", lockDtos=" + lockDtos +
                '}';
    }
}
